package com.example.bwic_svc.model;

public class Bid {
    private Integer itemId;
    private Integer clientId;
    private Double amount;

    public Bid(Integer itemId, Integer clientId, Double amount) {
        this.itemId = itemId;
        this.clientId = clientId;
        this.amount = amount;
    }

    // 添加 getters 和 setters 方法
    public Integer getItemId() { return itemId; }
    public void setItemId(Integer itemId) { this.itemId = itemId; }
    public Integer getClientId() { return clientId; }
    public void setClientId(Integer clientId) { this.clientId = clientId; }
    public Double getAmount() { return amount; }
    public void setAmount(Double amount) { this.amount = amount; }

    @Override
    public String toString() {
        return "Bid{" +
                "itemId=" + itemId +
                ", clientId=" + clientId +
                ", amount=" + amount +
                "}";
    }
}